package com.hopu.service.Impl;

import com.hopu.mapper.DjrzMapper;
import com.hopu.pojo.Dengji;
import com.hopu.service.DjrzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
@Service
public class DjrzServiceImpl implements DjrzService {
   @Autowired
   private DjrzMapper djrzMapper;

    @Override
    public List<Dengji> findAllDjrz() {
        return djrzMapper.findAllDjrz();
    }

    @Override
    public int uppDjrz(Dengji dengji) {
        int i = djrzMapper.uppDjrz(dengji);
        return i;
    }

    @Override
    public Dengji findDjByMid(int mid) {
        return djrzMapper.findDjByMid(mid);
    }

    @Override
    public int addDjrz(long mdate, int eid, int cid, int hid, String mimg, Float myj, Float myzj, int mflag, long mbegintime) {
        return djrzMapper.addDjrz(mdate,eid,cid,hid,mimg,myj,myzj,mflag,mbegintime);
    }

    @Override
    public List<Dengji> findAllDjrzByCondition(Dengji dengji) {
        return djrzMapper.findAllDjrzByCondition(dengji);
    }

    @Override
    public List<Dengji> findAllMydjOnDaoqi(Dengji dengji) {
        return djrzMapper.findAllMydjOnDaoqi(dengji);
    }

}
